public abstract class Component {

    private String nameComponent;

    public Component(String nameComponent){
        this.nameComponent=nameComponent;
    }

    public abstract boolean addChild(Component child);
    public abstract void operation();
    public String getNameComponent(){
        return nameComponent;
    }

}
